
#ifndef BASE_ACCEPTOR_INCLUDED
#define BASE_ACCEPTOR_INCLUDED

#include "tcpsocket.h"

class BASE_API BaseAcceptor : public TcpSocket
{
public:
	BaseAcceptor(Proactor* proactor,unsigned short port,int reuse=0);
	virtual ~BaseAcceptor();
	
	int Accept();

public:
	virtual pj_bool_t OnAccept(pj_sock_t newsock,const pj_sockaddr_t *src_addr,int src_addr_len){return true;};

};

#endif